<?php defined('SYSPATH') OR die('No direct script access.');

class Controller_Loading extends Controller_Base {


	public function action_index($folder = array(), $style = '', $url = '', $tips = '')
	{
		$files = array();$folder = to_array($folder);
		foreach ($folder as $v)
		{
			$_folder = APPPATH.$v;
			if (!is_dir($_folder)) continue;
			$_f = file_list($_folder, array(
				APPPATH.'static'.DIRECTORY_SEPARATOR.'*',
			));
			foreach($_f as $_v)
			{
				$files[] = str_replace(APPPATH, '', $_v);
			}
		}

		$this->template->_files = $files;
		$this->template->_url = $url;
		$this->template->_tips = $tips;
		$this->template->set_filename('smarty3:loading');
	}

}